{
 "cells": [
  {
   "cell_type": "markdown",
   "source": [
    "## 获取代码列表"
   ],
   "metadata": {
    "collapsed": false,
    "pycharm": {
     "name": "#%% md\n"
    }
   }
  },
  {
   "cell_type": "code",
   "execution_count": 1,
   "metadata": {
    "collapsed": true,
    "pycharm": {
     "name": "#%%\n"
    }
   },
   "outputs": [
    {
     "data": {
      "text/plain": "['002316.SZ',\n '002592.SZ',\n '002872.SZ',\n '002748.SZ',\n '002205.SZ',\n '003017.SZ',\n '003003.SZ',\n '002591.SZ',\n '002742.SZ',\n '002295.SZ',\n '002830.SZ',\n '002809.SZ',\n '002828.SZ',\n '002836.SZ',\n '002144.SZ',\n '002800.SZ',\n '002259.SZ',\n '002853.SZ',\n '002209.SZ',\n '002817.SZ',\n '002278.SZ',\n '002760.SZ',\n '002909.SZ',\n '002858.SZ',\n '002357.SZ',\n '002998.SZ',\n '002871.SZ',\n '002826.SZ',\n '002968.SZ',\n '003036.SZ',\n '002942.SZ',\n '002873.SZ',\n '002687.SZ',\n '002802.SZ',\n '002566.SZ',\n '002811.SZ',\n '003033.SZ',\n '002715.SZ',\n '002729.SZ',\n '002365.SZ',\n '002576.SZ',\n '002420.SZ',\n '002774.SZ',\n '002394.SZ',\n '003018.SZ',\n '002753.SZ',\n '002732.SZ',\n '002012.SZ',\n '002172.SZ',\n '002825.SZ',\n '002622.SZ',\n '002442.SZ',\n '002671.SZ',\n '002066.SZ',\n '002879.SZ',\n '002982.SZ',\n '002159.SZ',\n '002806.SZ',\n '002381.SZ',\n '002674.SZ',\n '002286.SZ',\n '002931.SZ',\n '002863.SZ',\n '002949.SZ',\n '002772.SZ',\n '002476.SZ',\n '002899.SZ',\n '002769.SZ',\n '002864.SZ',\n '002098.SZ',\n '002107.SZ',\n '002363.SZ',\n '002903.SZ',\n '002730.SZ',\n '002112.SZ',\n '002927.SZ',\n '002451.SZ',\n '002852.SZ',\n '002660.SZ',\n '002578.SZ',\n '002860.SZ',\n '002164.SZ',\n '002398.SZ',\n '002734.SZ',\n '002337.SZ',\n '002412.SZ',\n '002969.SZ',\n '002692.SZ',\n '002443.SZ',\n '002956.SZ',\n '002796.SZ',\n '002743.SZ',\n '002661.SZ',\n '002790.SZ',\n '002021.SZ',\n '002788.SZ',\n '002040.SZ',\n '002900.SZ',\n '002391.SZ',\n '002548.SZ',\n '002616.SZ',\n '002787.SZ',\n '002722.SZ',\n '002981.SZ',\n '002917.SZ',\n '002688.SZ',\n '002560.SZ',\n '002404.SZ',\n '002535.SZ',\n '002918.SZ',\n '002165.SZ',\n '002885.SZ',\n '002350.SZ',\n '003020.SZ',\n '002686.SZ',\n '002598.SZ',\n '003010.SZ',\n '002546.SZ',\n '002565.SZ',\n '002186.SZ',\n '002980.SZ',\n '002090.SZ',\n '002201.SZ',\n '002820.SZ',\n '003037.SZ',\n '003025.SZ',\n '002666.SZ',\n '002615.SZ',\n '002228.SZ',\n '002862.SZ',\n '002835.SZ',\n '002627.SZ',\n '002333.SZ',\n '002282.SZ',\n '002082.SZ',\n '002462.SZ',\n '002628.SZ',\n '002735.SZ',\n '002580.SZ',\n '003015.SZ',\n '002919.SZ',\n '002448.SZ',\n '002471.SZ',\n '002630.SZ',\n '002631.SZ',\n '002395.SZ',\n '002348.SZ',\n '002364.SZ',\n '002224.SZ',\n '002973.SZ',\n '002300.SZ',\n '002783.SZ',\n '002457.SZ',\n '002160.SZ',\n '002290.SZ',\n '002479.SZ',\n '003019.SZ',\n '002427.SZ',\n '002953.SZ',\n '002606.SZ',\n '002052.SZ',\n '003028.SZ',\n '002361.SZ',\n '002132.SZ',\n '002296.SZ',\n '002952.SZ',\n '002346.SZ',\n '002658.SZ',\n '002137.SZ',\n '002441.SZ',\n '002454.SZ',\n '002849.SZ',\n '002644.SZ',\n '002474.SZ',\n '002996.SZ',\n '002645.SZ',\n '002393.SZ',\n '002870.SZ',\n '003002.SZ',\n '002700.SZ',\n '002187.SZ',\n '002971.SZ',\n '002655.SZ',\n '002067.SZ',\n '002728.SZ',\n '002328.SZ',\n '002886.SZ',\n '002150.SZ',\n '002614.SZ',\n '002277.SZ',\n '002577.SZ',\n '002986.SZ',\n '002161.SZ',\n '002134.SZ',\n '002358.SZ',\n '002083.SZ',\n '002758.SZ',\n '002983.SZ',\n '002757.SZ',\n '002599.SZ',\n '002824.SZ',\n '002613.SZ',\n '002478.SZ',\n '002876.SZ',\n '002452.SZ',\n '002403.SZ',\n '002562.SZ',\n '002033.SZ',\n '002589.SZ',\n '002116.SZ',\n '002823.SZ',\n '002810.SZ',\n '002483.SZ',\n '002843.SZ',\n '002380.SZ',\n '002584.SZ',\n '002094.SZ',\n '002676.SZ',\n '002912.SZ',\n '002962.SZ',\n '002549.SZ',\n '002322.SZ',\n '002029.SZ',\n '002062.SZ',\n '002255.SZ',\n '002355.SZ',\n '002272.SZ',\n '002406.SZ',\n '002552.SZ',\n '002345.SZ',\n '002637.SZ',\n '002264.SZ',\n '002026.SZ',\n '002677.SZ',\n '002117.SZ',\n '002937.SZ',\n '003001.SZ',\n '002376.SZ',\n '002845.SZ',\n '002766.SZ',\n '002206.SZ',\n '003005.SZ',\n '002866.SZ',\n '002392.SZ',\n '002733.SZ',\n '002746.SZ',\n '002218.SZ',\n '002449.SZ',\n '002632.SZ',\n '002321.SZ',\n '002896.SZ',\n '002752.SZ',\n '002178.SZ',\n '002869.SZ',\n '002553.SZ',\n '002930.SZ',\n '002988.SZ',\n '002424.SZ',\n '002639.SZ',\n '002570.SZ',\n '002250.SZ',\n '002104.SZ',\n '002538.SZ',\n '002367.SZ',\n '002695.SZ',\n '002469.SZ',\n '002375.SZ',\n '002119.SZ',\n '002950.SZ',\n '002181.SZ',\n '002303.SZ',\n '002135.SZ',\n '002907.SZ',\n '002838.SZ',\n '002175.SZ',\n '003000.SZ',\n '002059.SZ',\n '002491.SZ',\n '002801.SZ',\n '002609.SZ',\n '002301.SZ',\n '002641.SZ',\n '002437.SZ',\n '002662.SZ',\n '002009.SZ',\n '002559.SZ',\n '002768.SZ',\n '002636.SZ',\n '002803.SZ',\n '002014.SZ',\n '002445.SZ',\n '002166.SZ',\n '002111.SZ',\n '002057.SZ',\n '002955.SZ',\n '002344.SZ',\n '002884.SZ',\n '002284.SZ',\n '002782.SZ',\n '002965.SZ',\n '002749.SZ',\n '002088.SZ',\n '002401.SZ',\n '002922.SZ',\n '002481.SZ',\n '002190.SZ',\n '002880.SZ',\n '002334.SZ',\n '002889.SZ',\n '002035.SZ',\n '002438.SZ',\n '002039.SZ',\n '002017.SZ',\n '002154.SZ',\n '003013.SZ',\n '002108.SZ',\n '002034.SZ',\n '002990.SZ',\n '002536.SZ',\n '002103.SZ',\n '002881.SZ',\n '002191.SZ',\n '002959.SZ',\n '002470.SZ',\n '002957.SZ',\n '002446.SZ',\n '002293.SZ',\n '002349.SZ',\n '002991.SZ',\n '002961.SZ',\n '002124.SZ',\n '002765.SZ',\n '002935.SZ',\n '002283.SZ',\n '002258.SZ',\n '002122.SZ',\n '002167.SZ',\n '002997.SZ',\n '002208.SZ',\n '002882.SZ',\n '002707.SZ',\n '002125.SZ',\n '002102.SZ',\n '002140.SZ',\n '002533.SZ',\n '002543.SZ',\n '002649.SZ',\n '002327.SZ',\n '002390.SZ',\n '002519.SZ',\n '003012.SZ',\n '002567.SZ',\n '002106.SZ',\n '002651.SZ',\n '002612.SZ',\n '002530.SZ',\n '002913.SZ',\n '002590.SZ',\n '002440.SZ',\n '002726.SZ',\n '002970.SZ',\n '002706.SZ',\n '002149.SZ',\n '002170.SZ',\n '002540.SZ',\n '002274.SZ',\n '002897.SZ',\n '002985.SZ',\n '002941.SZ',\n '002023.SZ',\n '002833.SZ',\n '002042.SZ',\n '002827.SZ',\n '002550.SZ',\n '002685.SZ',\n '002697.SZ',\n '002046.SZ',\n '002238.SZ',\n '002727.SZ',\n '002929.SZ',\n '002777.SZ',\n '002276.SZ',\n '002960.SZ',\n '002275.SZ',\n '002212.SZ',\n '002840.SZ',\n '002792.SZ',\n '002254.SZ',\n '002093.SZ',\n '002123.SZ',\n '002421.SZ',\n '002947.SZ',\n '002073.SZ',\n '002534.SZ',\n '003039.SZ',\n '002588.SZ',\n '002581.SZ',\n '002101.SZ',\n '002041.SZ',\n '002233.SZ',\n '002174.SZ',\n '002100.SZ',\n '002434.SZ',\n '002516.SZ',\n '002378.SZ',\n '002302.SZ',\n '002079.SZ',\n '002267.SZ',\n '002526.SZ',\n '002004.SZ',\n '002194.SZ',\n '002891.SZ',\n '002859.SZ',\n '002993.SZ',\n '002791.SZ',\n '002192.SZ',\n '002043.SZ',\n '002542.SZ',\n '002626.SZ',\n '002987.SZ',\n '002539.SZ',\n '002081.SZ',\n '002979.SZ',\n '002545.SZ',\n '002818.SZ',\n '002967.SZ',\n '002396.SZ',\n '002928.SZ',\n '002467.SZ',\n '002045.SZ',\n '002807.SZ',\n '002703.SZ',\n '002892.SZ',\n '002204.SZ',\n '002048.SZ',\n '002338.SZ',\n '002635.SZ',\n '002216.SZ',\n '002158.SZ',\n '002716.SZ',\n '003006.SZ',\n '002251.SZ',\n '002675.SZ',\n '002839.SZ',\n '002335.SZ',\n '002020.SZ',\n '002832.SZ',\n '002051.SZ',\n '002488.SZ',\n '002243.SZ',\n '002317.SZ',\n '002518.SZ',\n '002036.SZ',\n '002061.SZ',\n '002239.SZ',\n '002815.SZ',\n '002925.SZ',\n '002978.SZ',\n '002332.SZ',\n '002458.SZ',\n '002011.SZ',\n '002946.SZ',\n '002498.SZ',\n '002705.SZ',\n '002287.SZ',\n '002182.SZ',\n '002237.SZ',\n '002668.SZ',\n '002643.SZ',\n '002895.SZ',\n '002737.SZ',\n '002063.SZ',\n '002091.SZ',\n '002605.SZ',\n '002541.SZ',\n '002324.SZ',\n '002745.SZ',\n '002245.SZ',\n '002755.SZ',\n '002617.SZ',\n '002690.SZ',\n '002015.SZ',\n '002597.SZ',\n '002654.SZ',\n '002901.SZ',\n '002701.SZ',\n '002681.SZ',\n '002315.SZ',\n '002183.SZ',\n '002847.SZ',\n '002249.SZ',\n '002292.SZ',\n '002019.SZ',\n '002351.SZ',\n '002487.SZ',\n '002320.SZ',\n '002497.SZ',\n '002867.SZ',\n '002060.SZ',\n '002468.SZ',\n '002226.SZ',\n '002126.SZ',\n '002003.SZ',\n '002408.SZ',\n '002268.SZ',\n '002911.SZ',\n '002557.SZ',\n '002270.SZ',\n '002484.SZ',\n '002400.SZ',\n '002096.SZ',\n '002222.SZ',\n '002139.SZ',\n '002221.SZ',\n '002428.SZ',\n '002368.SZ',\n '002906.SZ',\n '002531.SZ',\n '002611.SZ',\n '002507.SZ',\n '002399.SZ',\n '002572.SZ',\n '002747.SZ',\n '002265.SZ',\n '002958.SZ',\n '002266.SZ',\n '002506.SZ',\n '002698.SZ',\n '002773.SZ',\n '002563.SZ',\n '002145.SZ',\n '002299.SZ',\n '002044.SZ',\n '002402.SZ',\n '002416.SZ',\n '002203.SZ',\n '002936.SZ',\n '002385.SZ',\n '002461.SZ',\n '002024.SZ',\n '002372.SZ',\n '003021.SZ',\n '002683.SZ',\n '002432.SZ',\n '003022.SZ',\n '002508.SZ',\n '002410.SZ',\n '002080.SZ',\n '002155.SZ',\n '002948.SZ',\n '002056.SZ',\n '002831.SZ',\n '002756.SZ',\n '002120.SZ',\n '002607.SZ',\n '002926.SZ',\n '002430.SZ',\n '002429.SZ',\n '002851.SZ',\n '002318.SZ',\n '002500.SZ',\n '002130.SZ',\n '002138.SZ',\n '002472.SZ',\n '002558.SZ',\n '002984.SZ',\n '002025.SZ',\n '003031.SZ',\n '002261.SZ',\n '002065.SZ',\n '002841.SZ',\n '002262.SZ',\n '002568.SZ',\n '002837.SZ',\n '002739.SZ',\n '002738.SZ',\n '002008.SZ',\n '002603.SZ',\n '002850.SZ',\n '002244.SZ',\n '002273.SZ',\n '002608.SZ',\n '002821.SZ',\n '002966.SZ',\n '002517.SZ',\n '002409.SZ',\n '002157.SZ',\n '002007.SZ',\n '002602.SZ',\n '002583.SZ',\n '002152.SZ',\n '002271.SZ',\n '002281.SZ',\n '002444.SZ',\n '002223.SZ',\n '002414.SZ',\n '002939.SZ',\n '002812.SZ',\n '002595.SZ',\n '002353.SZ',\n '002340.SZ',\n '002423.SZ',\n '002312.SZ',\n '002131.SZ',\n '002797.SZ',\n '002180.SZ',\n '002294.SZ',\n '002555.SZ',\n '002532.SZ',\n '002185.SZ',\n '002078.SZ',\n '002074.SZ',\n '002085.SZ',\n '002945.SZ',\n '002673.SZ',\n '002064.SZ',\n '002653.SZ',\n '002601.SZ',\n '002032.SZ',\n '002709.SZ',\n '002384.SZ',\n '002456.SZ',\n '002128.SZ',\n '002156.SZ',\n '002202.SZ',\n '002252.SZ',\n '002916.SZ',\n '002236.SZ',\n '002422.SZ',\n '002459.SZ',\n '002049.SZ',\n '002028.SZ',\n '002648.SZ',\n '002600.SZ',\n '002920.SZ',\n '002001.SZ',\n '002463.SZ',\n '002311.SZ',\n '002938.SZ',\n '002460.SZ',\n '002179.SZ',\n '002241.SZ',\n '002625.SZ',\n '002050.SZ',\n '002493.SZ']"
     },
     "execution_count": 1,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "from tools import dataTool\n",
    "\n",
    "res = dataTool.getCodes()\n",
    "res"
   ]
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 2
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython2",
   "version": "2.7.6"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 0
}